package cn.lds.j367.dsbank.controller;

import cn.lds.j367.dsbank.entity.Employee;
import org.springframework.security.core.context.SecurityContextHolder;

public class BaseController {

    public Employee getLoginEmp(){
        Employee loginEmp = (Employee) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
        return loginEmp;
    }
}
